package com.plian.system.vo.zzd.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("搜索结果")
public class QueryDataVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "dataType不能为空")
    @ApiModelProperty("1 searchId为员工档案id 2 searchId为组织id 3 searchId为产权信息id 4searchId为不动产信息id")
    private Integer dataType;

    @ApiModelProperty("人事、企业信息")
    private String name;

    @NotBlank(message = "searchId不能为空")
    @ApiModelProperty("searchId")
    private String searchId;

}
